import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = 
[
   {
     path : '/login',
     name : 'login',
     component : () => import ("../views/login/login")
   },
   {
     path : '/',
     component : () => import ('../views/layout/layout.vue'),
     children : [
       {
         path : '',
         name : 'home',
         component : () => import("../views/index/index.vue")
       }
     ]
   }

]

const router = new VueRouter({
  routes
})

export default router
